package com.duoduo.mall.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 订单明细表
 * 
 * @author zhuge
 * @email 1399671339@qq.com
 * @date 2024-12-26 13:10:05
 */
@Data
@TableName("t_order_item")
public class OrderItemEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 订单项ID
	 */
	@TableId
	private Long id;
	/**
	 * 订单ID
	 */
	private Long orderId;
	/**
	 * 商品ID
	 */
	private Long productId;
	/**
	 * 商品名称
	 */
	private String productName;
	/**
	 * 商品图片
	 */
	private String productImage;
	/**
	 * 规格ID
	 */
	private Long specId;
	/**
	 * 规格名称
	 */
	private String specName;
	/**
	 * 商品单价
	 */
	private BigDecimal price;
	/**
	 * 购买数量
	 */
	private Integer quantity;
	/**
	 * 商品总价
	 */
	private BigDecimal totalAmount;
	/**
	 * 创建时间
	 */
	private Date createTime;

}
